import java.util.Arrays;

public class test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        System.out.println("顺序表是否为满:"+myArrayList.isFull());
        //myArrayList.set(5,8);
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(6);
        myArrayList.add(7);
        myArrayList.add(8);
        myArrayList.add(9);
        myArrayList.add(10);
        myArrayList.add(11);
        System.out.println("顺序表是否为满:"+myArrayList.isFull());
        myArrayList.add(5,4);
        myArrayList.display();
        myArrayList.add(3,8);
        myArrayList.remove(3);
        myArrayList.display();
        System.out.println("是否含有4"+ myArrayList.contains(4));
        System.out.println("7元素的下标为:"+myArrayList.indexOf(7));
        System.out.println("4下标的元素为:"+myArrayList.get(4));
        myArrayList.set(6,16);
        myArrayList.display();
    }
}
